package psico_test.appCrear.ensayo.gui;

import javax.swing.JOptionPane;
import javax.swing.JTextField;

import psico_test.appCrear.ensayo.EnsayoManager;

public class ventanaEnsayo extends javax.swing.JFrame implements Runnable
{
	private EnsayoManager controller;
	
	public ventanaEnsayo(EnsayoManager controller)
	{
		this.controller = controller;
	}
	
	public void run()
	{
		this.setUndecorated(true);
		initComponents();
		this.FieldNanosegundos.setEnabled(false);
		this.TextoColor.setEnabled(false);
		this.setLocationRelativeTo(null);
		this.setAlwaysOnTop(true);
		this.setVisible(true);
	}
	
	private void initComponents() 
	{
		PanelFondo = new javax.swing.JPanel();
		PanelColor = new javax.swing.JPanel();
		LabelColor = new javax.swing.JLabel();
		TextoColor = new javax.swing.JTextField();
		ComboColor = new javax.swing.JComboBox(new Object[]{"Seleccione un color","black","white","green","blue","yellow","red","orange","pink"});
		PanelTexto = new javax.swing.JPanel();
		ComboEstiloTexto = new javax.swing.JComboBox(new Object[]{"Normal","Cursiva","Negrita"});
		ComboEstiloTexto.setSelectedIndex(0);
		ComboColorTexto = new javax.swing.JComboBox(new Object[]{"Black","Red","Blue","Green"});
		ComboColorTexto.setSelectedIndex(0);
		LabelTexto = new javax.swing.JLabel();
		TextoTexto = new javax.swing.JTextField();
		PanelSonido = new javax.swing.JPanel();
		ComboSonido = new javax.swing.JComboBox();
		TextoSonido = new javax.swing.JTextField();
		BotonSonido = new javax.swing.JButton();
		PanelTiempo = new javax.swing.JPanel();
		LabelSegundos = new javax.swing.JLabel();
		LabelMilisegundos = new javax.swing.JLabel();
		LabelNanosegundos = new javax.swing.JLabel();
		FieldSegundos = new javax.swing.JTextField();
		FieldMilisegundos = new javax.swing.JTextField();
		FieldNanosegundos = new javax.swing.JTextField();
		BotonCancelar = new javax.swing.JButton();
		BotonAceptar = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
		setTitle("Ensayo");
		setAlwaysOnTop(true);

		PanelColor.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Color", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12), java.awt.Color.blue)); // NOI18N

		LabelColor.setText("Color: ");

		TextoColor.setText("Seleccione un Color");
		TextoColor.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		ComboColor.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				ClickComboColor(evt);
			}
		});

		org.jdesktop.layout.GroupLayout PanelColorLayout = new org.jdesktop.layout.GroupLayout(PanelColor);
		PanelColor.setLayout(PanelColorLayout);
		PanelColorLayout.setHorizontalGroup(
				PanelColorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelColorLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelColorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
								.add(ComboColor, 0, 228, Short.MAX_VALUE)
								.add(PanelColorLayout.createSequentialGroup()
										.add(LabelColor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
										.add(TextoColor, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)))
										.addContainerGap())
		);
		PanelColorLayout.setVerticalGroup(
				PanelColorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelColorLayout.createSequentialGroup()
						.add(ComboColor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
						.add(18, 18, 18)
						.add(PanelColorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
								.add(LabelColor)
								.add(TextoColor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
								.addContainerGap(34, Short.MAX_VALUE))
		);

		PanelTexto.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Texto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12), java.awt.Color.blue)); // NOI18N

		ComboEstiloTexto.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				ClickComboEstiloTexto(evt);
			}
		});

		ComboColorTexto.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				ClickComboColorTexto(evt);
			}
		});

		LabelTexto.setText("Palabra: ");

		TextoTexto.setText("Palabra");
		TextoTexto.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		org.jdesktop.layout.GroupLayout PanelTextoLayout = new org.jdesktop.layout.GroupLayout(PanelTexto);
		PanelTexto.setLayout(PanelTextoLayout);
		PanelTextoLayout.setHorizontalGroup(
				PanelTextoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelTextoLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelTextoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
								.add(org.jdesktop.layout.GroupLayout.TRAILING, ComboColorTexto, 0, 171, Short.MAX_VALUE)
								.add(org.jdesktop.layout.GroupLayout.TRAILING, PanelTextoLayout.createSequentialGroup()
										.add(LabelTexto, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)
										.add(3, 3, 3)
										.add(TextoTexto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 104, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.add(org.jdesktop.layout.GroupLayout.TRAILING, ComboEstiloTexto, 0, 171, Short.MAX_VALUE))
										.addContainerGap())
		);
		PanelTextoLayout.setVerticalGroup(
				PanelTextoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(org.jdesktop.layout.GroupLayout.TRAILING, PanelTextoLayout.createSequentialGroup()
						.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
						.add(PanelTextoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
								.add(LabelTexto)
								.add(TextoTexto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
								.add(ComboColorTexto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
								.add(4, 4, 4)
								.add(ComboEstiloTexto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
								.addContainerGap())
		);

		PanelSonido.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Sonido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12), java.awt.Color.blue)); // NOI18N

		ComboSonido.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				ClickComboSonido(evt);
			}
		});

		TextoSonido.setText("Añadir tono externo");
		TextoSonido.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		BotonSonido.setText("Explorar");
		BotonSonido.setToolTipText("Seleccione un tono diferente");
		BotonSonido.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				ClickExplorar(evt);
			}
		});

		org.jdesktop.layout.GroupLayout PanelSonidoLayout = new org.jdesktop.layout.GroupLayout(PanelSonido);
		PanelSonido.setLayout(PanelSonidoLayout);
		PanelSonidoLayout.setHorizontalGroup(
				PanelSonidoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelSonidoLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelSonidoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
								.add(org.jdesktop.layout.GroupLayout.TRAILING, PanelSonidoLayout.createSequentialGroup()
										.add(TextoSonido, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
										.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
										.add(BotonSonido))
										.add(ComboSonido, 0, 228, Short.MAX_VALUE))
										.addContainerGap())
		);
		PanelSonidoLayout.setVerticalGroup(
				PanelSonidoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelSonidoLayout.createSequentialGroup()
						.addContainerGap()
						.add(ComboSonido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
						.add(PanelSonidoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
								.add(TextoSonido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
								.add(BotonSonido))
								.addContainerGap(23, Short.MAX_VALUE))
		);

		PanelTiempo.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Tiempo", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12), java.awt.Color.blue)); // NOI18N

		LabelSegundos.setText("Segundos:");

		LabelMilisegundos.setText("Milisegundos: ");

		LabelNanosegundos.setText("Nanosegundos: ");

		FieldSegundos.setText("0");
		FieldSegundos.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		FieldMilisegundos.setText("0");
		FieldMilisegundos.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		FieldNanosegundos.setText("0");
		FieldNanosegundos.addMouseListener(new java.awt.event.MouseAdapter() {
	        public void mouseClicked(java.awt.event.MouseEvent evt) {
	            ClickEnField(evt);
	         }
	      });

		org.jdesktop.layout.GroupLayout PanelTiempoLayout = new org.jdesktop.layout.GroupLayout(PanelTiempo);
		PanelTiempo.setLayout(PanelTiempoLayout);
		PanelTiempoLayout.setHorizontalGroup(
				PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelTiempoLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
								.add(PanelTiempoLayout.createSequentialGroup()
										.add(LabelSegundos)
										.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
										.add(FieldSegundos, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE))
										.add(PanelTiempoLayout.createSequentialGroup()
												.add(LabelMilisegundos)
												.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
												.add(FieldMilisegundos, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE))
												.add(PanelTiempoLayout.createSequentialGroup()
														.add(LabelNanosegundos)
														.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
														.add(FieldNanosegundos, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))
														.addContainerGap())
		);
		PanelTiempoLayout.setVerticalGroup(
				PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelTiempoLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
								.add(LabelSegundos)
								.add(FieldSegundos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
								.add(PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
										.add(LabelMilisegundos)
										.add(FieldMilisegundos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
										.add(PanelTiempoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
												.add(LabelNanosegundos)
												.add(FieldNanosegundos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
												.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);

		BotonCancelar.setText("Cancelar");
		BotonCancelar.setToolTipText("Pulse el boton para cancelar");
		BotonCancelar.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Salir(evt);
			}
		});

		BotonAceptar.setText("Aceptar");
		BotonAceptar.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Aceptar(evt);
			}
		});

		org.jdesktop.layout.GroupLayout PanelFondoLayout = new org.jdesktop.layout.GroupLayout(PanelFondo);
		PanelFondo.setLayout(PanelFondoLayout);
		PanelFondoLayout.setHorizontalGroup(
				PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelFondoLayout.createSequentialGroup()
						.addContainerGap()
						.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
								.add(org.jdesktop.layout.GroupLayout.LEADING, PanelFondoLayout.createSequentialGroup()
										.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
												.add(PanelColor, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
												.add(PanelSonido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
												.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
												.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
														.add(PanelTexto, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
														.add(PanelTiempo, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
														.add(PanelFondoLayout.createSequentialGroup()
																.add(BotonAceptar)
																.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
																.add(BotonCancelar)))
																.addContainerGap())
		);
		PanelFondoLayout.setVerticalGroup(
				PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelFondoLayout.createSequentialGroup()
						.addContainerGap(15, Short.MAX_VALUE)
						.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
								.add(PanelTexto, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
								.add(PanelColor, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
								.add(18, 18, 18)
								.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
										.add(PanelSonido, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
										.add(PanelTiempo, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
										.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
										.add(PanelFondoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
												.add(BotonCancelar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
												.add(BotonAceptar))
												.addContainerGap())
		);

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelFondo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
		);
		layout.setVerticalGroup(
				layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(PanelFondo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
		);
		
		addWindowListener(new java.awt.event.WindowAdapter()
		{
			public void windowClosing(java.awt.event.WindowEvent evt)
			{
				Salir(null);
			}
		});
		this.PanelSonido.setEnabled(false);
		this.PanelSonido.setToolTipText("Función no disponible");
		this.TextoSonido.setEnabled(false);
		this.TextoSonido.setToolTipText("Función no disponible");
		this.BotonSonido.setEnabled(false);
		this.BotonSonido.setToolTipText("Función no disponible");
		this.ComboSonido.setEnabled(false);
		this.ComboSonido.setToolTipText("Función no disponible");
		this.ComboEstiloTexto.setEnabled(false);
		this.ComboEstiloTexto.setToolTipText("Función no disponible");
		this.ComboColorTexto.setEnabled(false);
		this.ComboColorTexto.setToolTipText("Función no disponible");
		pack();
	}// </editor-fold>   
	
	private void ClickEnField(java.awt.event.MouseEvent evt) 
	{
		if(evt.getClickCount()==2)
		{
			JTextField jtf = (JTextField) evt.getSource();
			jtf.setText("");
		}
	}
	
	private void Salir(java.awt.event.ActionEvent evt)
	{                       
		System.out.println("Hemos clickado en cancelar");
		controller.addEnsayo(null);
	}                      

	private void Aceptar(java.awt.event.ActionEvent evt)
	{                         
		String tiempo = cogerTiempo();
		Object [] ensayo = new Object[4];
		
		ensayo[0] = TextoColor.getText();//color
		ensayo[1] = TextoTexto.getText();//texto
		ensayo[2] = "default";//sonido
		ensayo[3] = tiempo;//tiempo
			
		controller.addEnsayo(ensayo);
	}                        

	private String cogerTiempo() 
	{
		return ""+(Integer.parseInt(this.FieldSegundos.getText())*1000+Integer.parseInt(this.FieldMilisegundos.getText()));
	}

	private void ClickComboSonido(java.awt.event.ActionEvent evt)
	{                                  
		
	}                                 

	private void ClickExplorar(java.awt.event.ActionEvent evt)
	{                               
		JOptionPane.showMessageDialog(this,"Función no implementada");
	}                                                  

	private void ClickComboColor(java.awt.event.ActionEvent evt)
	{
		if(!ComboColor.getSelectedItem().toString().matches("Seleccione un color"))
			this.TextoColor.setText(this.ComboColor.getSelectedItem().toString());
	}

	private void ClickComboColorTexto(java.awt.event.ActionEvent evt) 
	{
		
	}

	private void ClickComboEstiloTexto(java.awt.event.ActionEvent evt) 
	{
		
	}

	private void ClickSalir(java.awt.event.WindowEvent evt)
	{
		Salir(null);
	}

	private javax.swing.JButton BotonAceptar;
	private javax.swing.JButton BotonCancelar;
	private javax.swing.JButton BotonSonido;
	private javax.swing.JComboBox ComboColor;
	private javax.swing.JComboBox ComboColorTexto;
	private javax.swing.JComboBox ComboEstiloTexto;
	private javax.swing.JComboBox ComboSonido;
	private javax.swing.JTextField FieldMilisegundos;
	private javax.swing.JTextField FieldNanosegundos;
	private javax.swing.JTextField FieldSegundos;
	private javax.swing.JLabel LabelColor;
	private javax.swing.JLabel LabelMilisegundos;
	private javax.swing.JLabel LabelNanosegundos;
	private javax.swing.JLabel LabelSegundos;
	private javax.swing.JLabel LabelTexto;
	private javax.swing.JPanel PanelColor;
	private javax.swing.JPanel PanelFondo;
	private javax.swing.JPanel PanelSonido;
	private javax.swing.JPanel PanelTexto;
	private javax.swing.JPanel PanelTiempo;
	private javax.swing.JTextField TextoColor;
	private javax.swing.JTextField TextoSonido;
	private javax.swing.JTextField TextoTexto;
	
	public static void main(String[]args)
	{
		new Thread(new ventanaEnsayo(null)).start();
	}
}